feat(aria/menu): create the aria menu#32080
Merged
wagnermaciel merged 5 commits intoangular:mainfrom Oct 20, 2025
Merged
Conversation
|
Deployed dev-app for 21a3d75 to: https://ng-dev-previews-comp--pr-angular-components-32080-dev-vqxm81d2.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
46848d7 to
12f3d89
Compare
ok7sai
approved these changes
Oct 16, 2025
| readonly submenu = input<Menu<V> | undefined>(undefined); | ||
|
|
||
| /** The unique ID of the menu. */ | ||
| readonly id = input<string>(Math.random().toString(36).substring(2, 10)); |
| } | ||
|
|
||
| /** Handles mouseover events for the menu. */ | ||
| onMouseOver(event: MouseEvent) { |
Member
There was a problem hiding this comment.
Should this handles pointer event instead?
adolgachev
approved these changes
Oct 20, 2025
* Adds the initial implementation of the WAI-ARIA menu, menubar, and menuitem patterns. This includes the basic behaviors for keyboard navigation, opening and closing submenus, and typeahead support. * This also introduces a 'focusElement' option to the list navigation behaviors to allow for moving the active item without focusing it.
* Adds the initial implementation of the 'ngMenu', 'ngMenuBar', 'ngMenuItem', and 'ngMenuTrigger' directives built on top of the menu UI patterns.
* Adds four examples for the new ARIA menu directives: - A menubar example demonstrating a typical application menu. - A menu trigger example showing a simple icon button that opens a menu. - A standalone menu example. - A context menu example that opens on right-click. * Also includes a set of simple wrapper directives to apply basic popover styles and behavior to the examples.
d71b205 to
21a3d75
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ngMenu,ngMenuBar,ngMenuItem, andngMenuTriggerdirectives.standalone menu, a context menu, and a menu attached to a trigger.